import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class UserListDto {
  @ApiProperty({ description: '页码' })
  @IsNotEmpty({ message: '请输入页码' })
  pageNum: number;

  @ApiProperty({ description: '每页条数' })
  @IsNotEmpty({ message: '请输入每页条数' })
  pageSize: number;
}
